package org.batatasframework.support.database.sql.field;

import org.batatasframework.support.database.IdentifyTableBase;
import org.batatasframework.support.database.metadatas.FieldMetadata;
import org.batatasframework.support.database.sql.TableRuntimeMaster;
import org.batatasframework.support.database.sql.TableInstance;

public class DefaultFieldElement extends AbstractFieldElement{

	public DefaultFieldElement(TableRuntimeMaster master, TableInstance tableSource, FieldMetadata fieldMetadata) {
		super(master, tableSource, fieldMetadata);
	}

	@Override
	public void toSqlString(StringBuilder sqlBuilder, IdentifyTableBase targetTable) {
		sqlBuilder.append(columnName).append(" as ").append(getAlias());
	}

}
